package com.alan.api.service;


import com.alan.api.share.common.enums.ResponseCodeEnum;
import com.alan.api.share.dto.common.RequestBase;
import com.alan.api.share.dto.common.ResponseBase;
import com.alan.api.share.service.IUserService;
import com.alan.api.util.UserUtils;
import org.springframework.stereotype.Service;

/**
 * Created by Alan on 2017/10/29.
 */
@Service
public class UserService implements IUserService {

    @Override
    public ResponseBase register(RequestBase request) throws Exception {
        //TODO register



        return null;
    }

    @Override
    public ResponseBase login(RequestBase request) throws Exception {
        //TODO login



        return null;
    }

    @Override
    public ResponseBase loginOut(RequestBase request) throws Exception{
        ResponseBase response = new ResponseBase();
        UserUtils.loginOut();
        response.setEnum(ResponseCodeEnum.SUCCESS);
        return response;
    }

}
